// import PhDateTimePicker from './date-time.vue'
import SingleDateTimePicker from './single.vue'
import DoubleDateTimePicker from './double.vue'
import {createApp} from 'vue'
export default {
    install(app:any,opt:any){
        const 
            sdom = document.createElement("div"),
            ddom = document.createElement("div"),
            sdp = createApp(SingleDateTimePicker,opt),
            ddp = createApp(DoubleDateTimePicker,opt),
            sins = sdp.mount(sdom) as InstanceType<typeof SingleDateTimePicker>,
            dins = ddp.mount(ddom) as InstanceType<typeof DoubleDateTimePicker>
            ;
            document.body.appendChild(sins.$el)
            document.body.appendChild(dins.$el)
        app.config.globalProperties.$phDatetimePicker = sins.show
        app.config.globalProperties.$phDDatetimePicker = dins.show
    }
}